package finn.movingheadtracker;

public class DmxValue implements Comparable<DmxValue>{
	int addr;
	byte value;
	/**
	 * Constructor
	 * @param addr Address of the Dmx Channel
	 * @param value Value of the Dmx Channel
	 */
	public DmxValue(int addr, byte value) {
		this.addr = addr;
		this.value = value;
	}
	@Override
	public int compareTo(DmxValue arg0) {
		if(arg0.addr == this.addr){
			return 0;
		}
		else if(arg0.addr < this.addr){
			return -1;
		}
		else{
			return 1;
		}
	}

}
